package com.yydm.serviceorder.client;

import com.yydm.commonutils.R;
import com.yydm.commonutils.ordervo.AutomobileVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Classname AutoClient
 * @Description TODO
 * @Version 1.0.0
 * @Date 2022/7/14 14:37
 * @Created by liu25
 */
@Component
@FeignClient(name = "yydm-service-auto")
public interface AutoClient {

    //    根据汽车id获取汽车的信息
    @PostMapping("/serviceauto/automobileFront/getAutomobileInfo/{id}")
    public AutomobileVo getAutomobileInfo(@PathVariable("id") String id);


    //    获取创始人姓名
    @GetMapping("/serviceauto/founder/getFounderName/{id}")
    public AutomobileVo getFounderName(@PathVariable("id") Integer id);

}
